<template>
    <div>
        <van-nav-bar title="标题" left-text="返回" left-arrow @click-left="onClickLeft" />
        <van-skeleton title :row="1207" v-if="status" />

        <van-swipe :autoplay="3000" lazy-render>
            <van-swipe-item v-for="image in images" :key="image">
                <img :src="image" style="width: 100%;height: 200px;" />
            </van-swipe-item>
        </van-swipe>
   

       <van-grid :column-num="2" >
  <van-grid-item v-for="item in imagesdata"  :icon="item.ni" :text="item.na" />
</van-grid>
    </div>
</template>

<script setup>
import { ref } from 'vue';
const status = ref(true)
setTimeout(() => {
    status.value = false
}, 2000);
const images = [
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-3.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-4.jpeg',
];
 const imagesdata= [
   {ni:'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',na:'魅族 21 ntoe'} ,
   {ni:'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',na:'魅族 21 pro'} ,
   {ni:'https://fastly.jsdelivr.net/npm/@vant/assets/apple-3.jpeg',na:'魅族 21 '} ,
   {ni:'https://fastly.jsdelivr.net/npm/@vant/assets/apple-4.jpeg',na:'魅族 20'} ,
    
];
</script>

<style lang="scss" scoped></style>